package com.junzhiit.nengji.shop.dao.impl;

import org.springframework.stereotype.Repository;

import com.bainaeco.framework.base.dao.AbstractBaseDAO;
import com.bainaeco.framework.common.jdbc.StatementParameter;
import com.junzhiit.nengji.shop.dao.SellSetingDAO;
import com.junzhiit.nengji.shop.model.SellSeting;

@Repository
public class SellSetingDAOImpl extends AbstractBaseDAO<SellSeting> implements SellSetingDAO {

	@Override
	public SellSeting find(String key) {
		String sql = "select * from sell_seting where `key`= ?";
		StatementParameter params = new StatementParameter();
		params.setString(key);
		return super.query(sql,SellSeting.class,params);
	}

}
